package mutsumimod.cards.copy;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.cards.derivative.Human;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;

public class Pant extends BaseCard  {
    public static final String ID = makeID(Pant.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.COMMON,
            CardTarget.SELF,
            1
    );

    public Pant() {
        super(ID, info);
        setAttr(0,10,0);
        setAttrUpg(0,4,0);
        originShouldCopyUse = true;
        setShouldCopyUse(true);
        cardsToPreview = new Human();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        gainBlock();
    }

    @Override
    public void updateDescription() {
        if(getInCopyUse()){
            rawDescription = cardStrings.EXTENDED_DESCRIPTION[0];
        }else{
            rawDescription = cardStrings.DESCRIPTION;
        }
        initializeDescription();
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new Pant();
    }

}